package com.patterns.demo.facade;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/11/29
 */
public class Computer {

    private CPU cpu = new CPU();
    private Memory memory = new Memory();
    private Disk disk = new Disk();

    public void startUp() {
        cpu.startUp();
        memory.startUp();
        disk.startUp();
        System.out.println("computer is startUp");
    }

    public void shutDown() {
        cpu.shutDown();
        memory.shutDown();
        disk.shutDown();
        System.out.println("computer is shutDown");
    }
}
